﻿using Entities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using DataAccess;
using System.Collections.Generic;
using BusinessLogic;
namespace TestMock1_G2
{
    [TestClass]
    public class UnitTestValidate_Thanh
    {
        [TestMethod]
        public void ValidateCardNo()
        {
            CardDA Card_D = new CardDA();
            CardEntites card_E = new CardEntites();
            card_E.CardNo = "1234567891234568";
            bool exp = Card_D.GetAccountNo(card_E);
            Assert.IsTrue(exp);
        }
        [TestMethod]
        public void ValidatePIN()
        {
            CardDA Card_D = new CardDA();
            CardEntites card_E = new CardEntites();
            card_E.CardNo = "1234567891234568";
            card_E.PIN = "321456";
            bool exp = Card_D.GetPIN(card_E);
            Assert.IsTrue(exp);
        }
        [TestMethod]
        public void BlockCard()
        {
            CardDA Card_D = new CardDA();
            CardEntites card_E = new CardEntites();
            card_E.CardNo = "1234567891234568";       
            bool exp = Card_D.BlockCard(card_E);
            Assert.IsTrue(exp);
        }
    }
}
